<include file="public:header" />
<!--帖子列表-->
<div class="pad_lr_10" >
    <form name="searchform" method="get" >
    <table width="100%" cellspacing="0" class="search_form">
        <tbody>
        <tr>
            <td>
            <div class="explain_col">
                <input type="hidden" name="g" value="admin" />
                <input type="hidden" name="m" value="thread" />
                <input type="hidden" name="a" value="index" />
                <input type="hidden" name="menuid" value="{$menuid}" />
                发起时间：
                <input type="text" name="time_start" id="time_start" class="date" size="12" value="{$startTime}">
                -
                <input type="text" name="time_end" id="time_end" class="date" size="12" value="{$endTime}">
                <input type="submit" name="search" class="btn" value="{:L('search')}" />
            </div>
            </td>
        </tr>
        </tbody>
    </table>
    </form>

    <div class="J_tablelist table_list" data-acturi="{:U('thread/ajax_edit')}">
    <table width="100%" cellspacing="0">
        <thead>
            <tr>
                <th align="left" width="30">序号</th> 
                <th align="left"><span>IMEI</span></th>
                <th align="left"><span>机型</span></th>
                <th align="left"><span>原始录入者</span></th>
                <th align="left"><span>申诉发起者</span></th>
                <th align="left"><span>发起时间</span></th>
                <th align="left"><span>处理进度</span></th>
                <th width="80">{:L('operations_manage')}</th>
            </tr>
        </thead>
        <tbody>
            <volist name="list" id="val" >
            <tr>
                <td align="left">{$val.id}</td>
                <td align="left">{$val.imei}</td>
                <td align="left">{$val.model}</td>
                <td align="left">{$val.toRealName}</td>
                <td align="left">{$val.createRealName}</td>
                <td align="left">{:date('Y-m-d H:i:s', $val['createTime'])}</td>
                <td align="left">{$val.progress}</td>
                <td align="center">
					<a href="javascript:;" class="J_showdialog" data-uri="{:u('admin/salesDispute/detail', array('id'=>$val['id']))}" data-title="冲突申诉详情"  data-id="detail" data-width="600" data-height="300">
						详情
					</a>
					<if condition="($val['status'] eq 0) AND ($val['createUserId'] eq $user['id'])">
					|
					<a href="javascript:;" class="J_confirmurl" data-uri="{:U('admin/salesDispute/delete', array('id'=>$val['id']))}" data-msg="{:sprintf(L('confirm_delete_one'),'此申诉记录')}">{:L('delete')}</a>
					</if>
				</td>
            </tr>
            </volist>
        </tbody>
    </table>

    <div class="btn_wrap_fixed">
        <label class="select_all"><input type="checkbox" name="checkall" class="J_checkall">{:L('select_all')}/{:L('cancel')}</label>
        <input type="button" class="btn" data-tdtype="batch_action" data-acttype="ajax" data-uri="{:U('thread/delete')}" data-name="id" data-msg="{:L('confirm_delete')}" value="{:L('delete')}" />
        <div id="pages">{$page}</div>
    </div>

    </div>
</div>
<include file="public:footer" />
<link rel="stylesheet" type="text/css" href="__STATIC__/js/calendar/calendar-blue.css"/>
<script src="__STATIC__/js/calendar/calendar.js"></script>
<script>


Calendar.setup({
    inputField : "time_start",
    ifFormat   : "%Y-%m-%d",
    showsTime  : false,
    timeFormat : "24"
});
Calendar.setup({
    inputField : "time_end",
    ifFormat   : "%Y-%m-%d",
    showsTime  : false,
    timeFormat : "24"
});
</script>
</body>
</html>
